
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>如何配置和优化网络参数以提高网络吞吐量和降低延迟？ - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>如何配置和优化网络参数以提高网络吞吐量和降低延迟？ - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">参数</div>
          <div class="card-question">在Linux网络优化中，`net.core.wmem_max` 和 `net.core.rmem_max` 这两个内核参数的主要作用是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">参数</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">这两个参数用于设置发送和接收缓冲区的最大大小，通过增大该值可以帮助提高大流量数据的吞吐量。</div>
          </div>
          <div class="card-source">来源: 1. 调整 TCP 参数</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">技术</div>
          <div class="card-question">如何通过调整内核参数来增加Linux系统中可用的本地端口数量？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">技术</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">通过调整 `net.ipv4.ip_local_port_range` 参数可以扩大本地端口的范围，从而增加可用端口的数量。</div>
          </div>
          <div class="card-source">来源: 4. 优化网络堆栈</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">工具</div>
          <div class="card-question">`ethtool` 命令在配置网络接口时有哪些具体用途？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">工具</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">`ethtool` 命令用于配置网卡的参数，例如调整接收(rx)和发送(tx)缓冲区大小、关闭延迟、启用大帧以及调整流控设置等。</div>
          </div>
          <div class="card-source">来源: 3. 配置网络接口</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">参数</div>
          <div class="card-question">在调整TCP性能时，`net.ipv4.tcp_congestion_control` 参数的作用是什么？文档提到了哪些推荐的算法？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">参数</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">该参数用于选择合适的TCP拥塞控制算法以提高吞吐量。文档中提到的推荐算法有 `cubic` 或 `bbr`。</div>
          </div>
          <div class="card-source">来源: 4. 优化网络堆栈</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">机制</div>
          <div class="card-question">为网络接口卡配置中断负载均衡（Interrupt Load Balancing）的目的是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">机制</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">其目的是将网络接口卡的中断处理均衡地分配到多个CPU上，以避免单一CPU因处理过多中断而过载。</div>
          </div>
          <div class="card-source">来源: 3. 配置网络接口</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">工具</div>
          <div class="card-question">当需要诊断网络性能问题时，文档推荐使用哪些工具进行网络抓包和分析？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">工具</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">文档推荐使用 `tcpdump` 或 `Wireshark` 这类工具进行网络抓包和深度分析，以诊断性能问题。</div>
          </div>
          <div class="card-source">来源: 5. 监控和调试</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">参数</div>
          <div class="card-question">用于配置TCP保活（Keepalive）机制的三个关键内核参数是什么？它们共同实现了什么目标？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">参数</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">这三个参数是 `net.ipv4.tcp_keepalive_time`、`net.ipv4.tcp_keepalive_intvl` 和 `net.ipv4.tcp_keepalive_probes`。它们共同用于调整TCP保活探测的时间间隔和探测次数，以帮助维持长时间连接的稳定性。</div>
          </div>
          <div class="card-source">来源: 1. 调整 TCP 参数</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">参数</div>
          <div class="card-question">`net.ipv4.tcp_rmem` 参数中包含的三个数值分别代表什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">参数</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">这三个数值分别代表TCP接收缓冲区的最小值、默认值和最大值。</div>
          </div>
          <div class="card-source">来源: 1. 调整 TCP 参数</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">工具</div>
          <div class="card-question">文档中列举了哪些可以用于实时监控网络连接和流量的命令行工具？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">工具</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">文档中提到的监控工具有 `netstat`、`ss`、`iftop` 和 `nload`。</div>
          </div>
          <div class="card-source">来源: 5. 监控和调试</div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
